064 trend views data logging of process value 1

在本课程中,我们将学习趋势视图和数据记录。
In this lesson we learn about the trend view and data logging.

这节课将非常有趣,因为在这里您将以图形方式看到参数如何变化......
This lesson is going to be very interesting because here you will see graphically how your parameter changes...

你的地址如何..
How your address the..

PLC 地址更改以及如何在文本文件或 Excel 文件中记录该地址,让我们看一个示例。
PLC address changes and how you can record that address in your text file or excel file alright so let's see an example..

让我们看一下坦克动画,在这里我将通过给出一些值来启动阀门。
let's go to the tank animation and here I'm going to start the valve by giving some value..

假设为 20%,那么我的阀门打开了 20%,并且液位在增加,您可以在此处查看该液位的图形表示。
let's say 20% so my valve is open 20 percent and the level is increasing and you can see this graphical representation of this level here..

现在这是我的时间尺度,如果你看到时间尺度之间的差异是 10 秒,这是我的水平幅度,从 0% 到 100% ...所以这里的当前水平由测试值描述,好吧如果我增加阀门开度%,您可以看到变化率会增加,如下所示。
now here this is my time scale and if you see the difference between the time scale is 10 seconds and here is my magnitude of levels which is from 0 to 100 percent ...so the current level here is depicted by test value here all right if I increase the valve opening % you can see the rate of change will increase as shown here.

好吧 ?
Alright ?

因此,要了解如何制作这个趋势图,这就是我们在本课中要学习的内容。
So to understand how to make this trend graph this is what we are going to learn in this lesson ..

同样,您也可以打开排水阀,然后您会看到液位在下降。
similarly you can also open the drain valve and then you will see the level is decreasing..

好吧?
Alright?

现在有趣的是,您还可以在您的..any 文档中记录这些值,假设我们这里有这三个按钮 - 开始记录、停止记录和清除。
Now the interesting thing is that you can also log this values in your ..any document let's say we have these three buttons here - Start logging, Stop logging and clear.

好吧..
Alright..

我们的计算机中有一个文件存储在“C 驱动器”中,因为我们正在进行模拟..这个文件夹 USB 以及我们可以在这些事件 HMI 中定义的级别,如果我们打开这个文本文件..
we have a file in our computer stored in 'C Drive' because we are doing the simulation ..this folder USB and the level this we can define in those events HMI and if we open this text file..

你可以看到这有一定的价值......
you can see this is having some value...

这是它刚刚进行实验的过去的值,我可以清除这个值......
this is the past value of it's just experimenting and I can clear this value...

让我们先清除这个值,所以我现在单击清除,这不是实时的..所以如果我再次打开它,您会注意到该值现在已全部清除,让我们按开始记录一旦我按下开始记录我有一个小显示屏作为现在开始记录的反馈,这里的值将在每五秒后打印一次,您可以注意到这里这是此时的值...
let's clear this value first, so I click the clear now this is not in real time..so if I open it again you will notice that the value is cleared all right now let's press on start logging once I press in start logging I have a small display as a feedback that logging is started now here the values will be printed after every five seconds you can notice here this is the value at this time...

五秒后,这就是值,这个值就是我的等级值。
after five seconds this is the value and this value is the value of my level.

好的?
Okay?

让我增加更多,即使我一次又一次打开它,您也会发现每五秒后就会打印一次值,好吗?
let me increase it more and even if I open it again and again you will find the values are being printed after every five seconds all right?

这个五秒的延迟你可以将其更改为 1 秒 - 2 秒以及你想要的任何时间延迟,你还可以提到你想要在这个数据日志中记录多少条记录,如果我按下停止记录...
This delay of five second you can change it to 1 second - 2 second and whatever time delay you want okay and you can also mention how many records you want in this data log alright and if I have press stop logging...

所以让我们看看最后一个值出现在这里我按停止记录。
so let's see the last value comes here I press stop logging.

现在它不会在这个值之后记录,因为这是最后一个值,是的,所以即使我在 15-20 秒后刷新它,它也不会记录,因为我已按下停止记录。
Now it will not log after this value all right as this was the last value yeah so even if i refresh this after 15-20 seconds it is not logging because I have pressed stop logging.

因此,您可以类似地记录此标签的值,如果您在这里有更多标签,您可以放置​​更多标签,并且可以制作更多“开始和停止登录按钮”来根据您的选择记录指示标签,这就是我们要学习的内容在本课中,我们将把本课分成两个视频。
So you are logging the value of this tag similarly if you have more tags here you can put more tags and can make more 'start and stop log in buttons' to log indicating tag as per your choice so this is what we are going to learn in this lesson so we will split this lesson in two videos.

在第一个视频中,我们将看到趋势图,在第二个视频中,我们将看到日志记录。
In one video we'll see the trend graph and the second video we'll see the logging..

所以让我们现在看看趋势图,所以我要关闭这个日志,或者我会先清除它,然后我会立即关闭它,让我们回到家,现在在趋势图中关闭这个窗口,您会在我的坦克中注意到屏幕 我这里有这个图表,所以让我删除它,让我们重新开始,这样在你的右侧你会注意到一些控件......
so let's see the trend graph now so I'm going to close this log or I will clear it first and I will close it all right now let's go back to home and close this window now in the trend graph you will notice in my tank screen I have this graph here so let me remove it and let's start over again so in your right side you will notice some controls...

从控件中将此趋势图拖到屏幕上,如果它太大,您可以调整它的大小。
from control drag this trend graph on your screen if this is too big you can resize it..

好吧,现在选择这个趋势图,然后双击这个,或者从这里转到它的属性,这是第一个选项趋势,现在我们需要定义您想要在图表中趋势的地址,所以单击这个,这就是趋势您可以将其重命名为您想要的任何名称,如果我增加此列的大小,您会注意到这里的源设置..
all right now select this trend graph and double click this one or go to its properties from here now this is the first option trend now here we need to define which address you want to trend in your graph alright so click this one this is the trend one you can rename that to whatever name you want and if I increase this column size all of it you will notice here source setting..

好吧,现在这是标签..
all right now this is the tag..

这是您要在此处提供的地址,因此我将提供标签 18 的地址,这是我的趋势图。
this is the address you want to give here so I'm going to give the address of tag 18 which is my trend graph..

我知道在我的 PLC 中这个标签 18 的值为 11,所以这是电平值,这是循环..
this tag 18 I know in my PLC is getting the value of 11 so this is the level value and this is the cycling ..

这意味着您想要监视此标签的间隔时间是多少,所以我希望这是 0.1 秒,所以这是我的标签 18 的定义,这些是不同的默认设置,我不想更改它,这是一种样式现在,在了解趋势之后,如果您愿意,我们需要调整时间尺度......
which means after how many interval you want to monitor this tag so I would prefer this to be 0.1 second so this is my tag 18 is defined and these are the different default settings I don't want to change it all right this is a style now after going to the trend we need to adjust the time scale if you want...

目前,如果您发现时间差异太大,如果我没记错的话,大约是 2.5 分钟 是的,所以或者可能或多或少,所以您可以做的是您可以转到这里时间轴,这是一百秒,所以您可以更改这个时间轴 - 我只想有 10 秒,所以现在我的 x 轴将有 10 秒延迟或 10 秒刻度......
currently if you see the difference in time is too much it's like almost 2.5 minutes if I'm not wrong Yeah so or maybe more or less so what you can do is you can go to here time axis this is hundred seconds so you can change this time axis - I would like to have only 10 seconds so now I will have 10 second delay or 10 seconds scale in my x-axis ...

好吧?
Alright?

这是我们想要的两个设置,首先是您需要定义趋势,其次是您定义时间轴。
These are the two settings which we want first is you need to define the trend and second is you define your time axis.

就是这样?
That's it?

因此,让我们上网检查趋势是否正常,这里我们有 100% 的值,您可以看到这个和这个之间的差异是 10 秒,所以让我们将其关闭并打开排水管,您可以看到这些值如果您想在此处更改趋势的颜色,则可以减少。您可以在趋势图中执行此操作 - 转到属性,在趋势中,如果您想要模式插值,则可以将其更改为红色的样式很好,让我们看看效果的变化,现在我们这里有红色,所以这取决于您,但是您可以更改它,这些是来自图表的值。
So let's go online and check if the trend is working fine so here we have 100% value and you can see that the difference between this and this is 10 second so let's turn it off and let the drain be on and you can see the values decreasing alright if you want to change the color of your trend here ..here you can do that in your trend graph- go to properties and in the trend this is the style you can change it to red color if you want Mode -interpolated is good so let's see that change in effects so now we have here red color alright so this is up to you however you want you can change it these are the values come from the graph.

好吧..
Alright..

所以让我把它关掉,这是关于经过训练的视图。
so let me just turn it off so this is about the trained view..

如果您想知道如何记录它,训练好的图表可以吗?
the trained graph all right if you want to know how to record it?

我们将在下一个视频中研究,但您对此视频中的趋势有任何疑问,您可以写信给我,我会回复您,在这个趋势图中您还可以添加更多内容...
That we are going to study in the next video but you have any doubt in this video concerning the trends you can write me and I will get back to you and one more thing in this trend graph you can add more...

更多您的数据寄存器...更多过程标签...
more your data registers..more process tags here...

所以你可以看到是否有多个值,如果你控制两个水箱,这是这个水箱的表示,如果控制两个水箱或5个水箱,并且你想一起监控液位或压力,或者你知道你想要的任何参数一起监控,您可以在此处添加更多趋势,这就是我们在趋势图中拥有的灵活性,您所要做的就是在此处定义地址,定义其循环时间...
so you can see if multiple values in case if you are controlling two tanks this is the representation of this tank if in controlling two tanks or 5 tanks and you want to monitor all together the level or the pressure or you know whatever parameter you want to monitor all together you can add more trends here this is the flexibility we have in the trend graph alright and all you have to do is just define the address here define its cyclic time ...

您想要监视它多少次,它将显示在此处,好吧,我希望这是有意义的,在下一个视频中,我们将看到如何在文本文件中记录此趋势的值。
for how many times you want to monitor it and it will be displayed here okay I hope this makes sense and in the next video we'll see how to log the values of this trend in our text file.

好吧?
Alright?

谢谢 :)
Thank you :)